package com.candy.oop;

public class Cat extends Animals{
    public String colour;
    public String catType;

    public Cat() {
        System.out.println("调用了cat类的构造方法");
    }

    public void playGame(){
        System.out.println("玩游戏");
    }

    @Override
    public void eat(){
//        super指代父类对象
        super.eat();
        System.out.println("吃猫粮");
    }




}
